Re: [SQL] Setting Next Value in Sequence - Mailing list pgsql-sql

From Herouth Maoz
Subject Re: [SQL] Setting Next Value in Sequence
Date
Msg-id l03110708b31406f2ab41@[147.233.159.109]
Whole thread Raw
In response to Setting Next Value in Sequence  ("Tim Perdue" <perdue@raccoon.com>)
List pgsql-sql
At 14:37 +0200 on 16/3/99, Tim Perdue wrote:


> Maybe it's due to sleep deprivation, but this is not working. I'm trying to
> update a seqence to a higher number, and it won't let me.
>
> db_domain=> update seq_mailid set last_value=1375000;
> ERROR:  You can't change sequence relation seq_mailid
>
> My sense of humor has totally faded over the last two days, and I would
> appreciate sone input.

Do you (or the user who is trying to do this) own the sequence? Do you have
the right access rights to it?

In any case, I always thought the best is to drop the sequence and create
it with a proper start number.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-sql by date:

Previous
From: Remigiusz Sokolowski
Date:
Subject: Re: [SQL] Setting Next Value in Sequence
Next
From: "Tim Perdue"
Date:
Subject: Re: [SQL] Setting Next Value in Sequence